Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

avoid some unnecessary copies #5958

Merged
merged 1 commit into from
Feb 12, 2024
Merged

avoid some unnecessary copies #5958

merged 1 commit into from
Feb 12, 2024

Conversation

firewave
Copy link
Collaborator

@firewave firewave commented Feb 7, 2024

this is mainly based on the warnings of the unfinished performance-unnecessary-copy-on-last-use clang-tidy check (see llvm/llvm-project#53489). it also includes some fixes spotted by review as well as some adjustments to the previous Coverity fixes

@firewave
Copy link
Collaborator Author

firewave commented Feb 7, 2024

There is https://trac.cppcheck.net/ticket/8945 about detecting this ourselves.

@firewave
Copy link
Collaborator Author

firewave commented Feb 7, 2024

Some change is causing more invocations of the valueflow. Still need to investigate.

@firewave firewave force-pushed the move-xx branch 2 times, most recently from d371a03 to 56e6e89 Compare February 12, 2024 16:38
this is mainly based on the warnings of the unfinished `performance-unnecessary-copy-on-last-use` clang-tidy check (see llvm/llvm-project#53489). it also includes some fixes spotted by review as well as some adjustments to the previous Coverity fixes
@firewave firewave marked this pull request as ready for review February 12, 2024 16:40
@firewave
Copy link
Collaborator Author

Some change is causing more invocations of the valueflow. Still need to investigate.

The change in question has been reverted.

@chrchr-github chrchr-github merged commit a656f10 into danmar:main Feb 12, 2024
64 checks passed
@firewave firewave deleted the move-xx branch February 12, 2024 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants